From 642eaa007a736c32104a4048aafa95fee3f5cc41 Mon Sep 17 00:00:00 2001 From: "arun.sharma@intel.com[kaf24]" Date: Wed, 20 Apr 2005 10:24:23 +0000 Subject: [PATCH] bitkeeper revision 1.1333 (42662dd7ZAAvK_ZarFhk1lamxPIQdg) [PATCH] x86-64-eax.patch vmx_vmcs.c: fix inline asms for x86-64 Signed-Off-By: Benjamin Liu Signed-Off-By: Arun Sharma --- xen/arch/x86/vmx_vmcs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/vmx_vmcs.c b/xen/arch/x86/vmx_vmcs.c index 6f95933180..0d2e79743d 100644 --- a/xen/arch/x86/vmx_vmcs.c +++ b/xen/arch/x86/vmx_vmcs.c @@ -187,7 +187,7 @@ void vmx_do_launch(struct exec_domain *ed) vmx_setup_platform(ed, ec); - __asm__ __volatile__ ("sgdt (%%eax) \n" :: "a"(&desc) : "memory"); + __asm__ __volatile__ ("sgdt (%0) \n" :: "a"(&desc) : "memory"); host_env.gdtr_limit = desc.size; host_env.gdtr_base = desc.address; @@ -197,7 +197,7 @@ void vmx_do_launch(struct exec_domain *ed) error |= __vmwrite(GUEST_LDTR_BASE, 0); error |= __vmwrite(GUEST_LDTR_LIMIT, 0); - __asm__ __volatile__ ("str (%%eax) \n" :: "a"(&tr) : "memory"); + __asm__ __volatile__ ("str (%0) \n" :: "a"(&tr) : "memory"); host_env.tr_selector = tr; host_env.tr_limit = sizeof(struct tss_struct); host_env.tr_base = (unsigned long) &init_tss[cpu]; @@ -358,7 +358,7 @@ static inline int construct_vmcs_host(struct host_execution_env *host_env) error |= __vmwrite(HOST_GS_BASE, host_env->ds_base); /* Debug */ - __asm__ __volatile__ ("sidt (%%eax) \n" :: "a"(&desc) : "memory"); + __asm__ __volatile__ ("sidt (%0) \n" :: "a"(&desc) : "memory"); host_env->idtr_limit = desc.size; host_env->idtr_base = desc.address; error |= __vmwrite(HOST_IDTR_BASE, host_env->idtr_base); -- 2.30.2